package Function.ItemUse;

import VWorldGameStudio.FCBattleOrder;
import VWorldGameStudio.FCMonster;
import VWorldGameStudio.FCPlayerInfo;
import VWorldGameStudio.FCTank;

import static FCRendering.FCRMaster.fcv;
import static FCRendering.FCRMaster.gameSave;

public class ToolqiXiPingBiQi extends AItemUse{

    @Override
    public ItemUseResult directUse() {
        fcv.closeAllShowWindw();
        gameSave.setQiXiPingBiSteps(40);
        gameSave.setYuGuaiJilv(90);
        useAfter();
        fcv.getMessage().add("气息屏蔽已经生效");
        fcv.showMessage();
        return new ItemUseResult();
    }

    @Override
    public ItemUseResult useInMapTarget(int x, int y) {
        return directUse();
    }

    @Override
    public ItemUseResult useForMonsterTarget(FCBattleOrder battleOrder, FCMonster m) {
        return directUse();
    }

    @Override
    public ItemUseResult useForPlayerTarget(FCPlayerInfo p) {
        return directUse();
    }

    @Override
    public ItemUseResult useForTankTarget(FCTank t) {
        return directUse();
    }
}
